﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 文章信息表
	/// </summary>
	public class DbArticles
	{ 
		#region DbArticles
		/// <summary>
		/// 
		/// </summary>
		public DbArticles()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbArticles(Int32 aId)
		{
			this.aId = aId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbArticles(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["aId"]),out aId);
			this.aTitle = Convert.ToString(dr["aTitle"]);
			int.TryParse(Convert.ToString(dr["aClassId"]),out aClassId);
			this.aHtmlTitle = Convert.ToString(dr["aHtmlTitle"]);
			this.aKeywords = Convert.ToString(dr["aKeywords"]);
			this.aDescription = Convert.ToString(dr["aDescription"]);
			this.aNote = Convert.ToString(dr["aNote"]);
			this.aShortInstr = Convert.ToString(dr["aShortInstr"]);
			this.aStatus = Convert.ToInt16(dr["aStatus"]);
			int.TryParse(Convert.ToString(dr["aHits"]),out aHits);
			int.TryParse(Convert.ToString(dr["aOrder"]),out aOrder);
			if(dr["aAddTime"] != DBNull.Value)
				this.aAddTime = Convert.ToDateTime(dr["aAddTime"]);
			this.aAllClassIds = Convert.ToString(dr["aAllClassIds"]);
			this.aLang = Convert.ToString(dr["aLang"]);
			this.aPicture = Convert.ToString(dr["aPicture"]);
			this.aFrom = Convert.ToString(dr["aFrom"]);
			this.aAuthor = Convert.ToString(dr["aAuthor"]);
			this.aIsPhotoNews = Convert.ToInt16(dr["aIsPhotoNews"]);
			this.aClassIds = Convert.ToString(dr["aClassIds"]);
			if(dr["cEndDate"] != DBNull.Value)
				this.cEndDate = Convert.ToDateTime(dr["cEndDate"]);
			
		}
		#endregion
		
		
		#region AId
		private Int32 aId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 AId
		{
			get{ return aId; }
			set{ aId= value; }
		}
		#endregion
		
		#region ATitle
		private System.String aTitle;
		/// <summary>	 
		/// 信息标题
		/// </summary>
		public System.String ATitle
		{
			get{ return aTitle; }
			set{ aTitle= value; }
		}
		#endregion
		
		#region AClassId
		private Int32 aClassId;
		/// <summary>	 
		/// 信息类别
		/// </summary>
		public Int32 AClassId
		{
			get{ return aClassId; }
			set{ aClassId= value; }
		}
		#endregion
		
		#region AHtmlTitle
		private System.String aHtmlTitle;
		/// <summary>	 
		/// 标题样式化
		/// </summary>
		public System.String AHtmlTitle
		{
			get{ return aHtmlTitle; }
			set{ aHtmlTitle= value; }
		}
		#endregion
		
		#region AKeywords
		private System.String aKeywords;
		/// <summary>	 
		/// 优化关键词
		/// </summary>
		public System.String AKeywords
		{
			get{ return aKeywords; }
			set{ aKeywords= value; }
		}
		#endregion
		
		#region ADescription
		private System.String aDescription;
		/// <summary>	 
		/// 优化描述
		/// </summary>
		public System.String ADescription
		{
			get{ return aDescription; }
			set{ aDescription= value; }
		}
		#endregion
		
		#region ANote
		private System.String aNote;
		/// <summary>	 
		/// 内容
		/// </summary>
		public System.String ANote
		{
			get{ return aNote; }
			set{ aNote= value; }
		}
		#endregion
		
		#region AShortInstr
		private System.String aShortInstr;
		/// <summary>	 
		/// 概要
		/// </summary>
		public System.String AShortInstr
		{
			get{ return aShortInstr; }
			set{ aShortInstr= value; }
		}
		#endregion
		
		#region AStatus
		private Int16 aStatus;
		/// <summary>	 
		/// 信息状态
		/// </summary>
		public Int16 AStatus
		{
			get{ return aStatus; }
			set{ aStatus= value; }
		}
		#endregion
		
		#region AHits
		private Int32 aHits;
		/// <summary>	 
		/// 信息到访数
		/// </summary>
		public Int32 AHits
		{
			get{ return aHits; }
			set{ aHits= value; }
		}
		#endregion
		
		#region AOrder
		private Int32 aOrder;
		/// <summary>	 
		/// 排序
		/// </summary>
		public Int32 AOrder
		{
			get{ return aOrder; }
			set{ aOrder= value; }
		}
		#endregion
		
		#region AAddTime
		private DateTime aAddTime;
		/// <summary>	 
		/// 加入时间
		/// </summary>
		public DateTime AAddTime
		{
			get{ return aAddTime; }
			set{ aAddTime= value; }
		}
		#endregion
		
		#region AAllClassIds
		private System.String aAllClassIds;
		/// <summary>	 
		/// 所有类别ID
		/// </summary>
		public System.String AAllClassIds
		{
			get{ return aAllClassIds; }
			set{ aAllClassIds= value; }
		}
		#endregion
		
		#region ALang
		private System.String aLang;
		/// <summary>	 
		/// 语种
		/// </summary>
		public System.String ALang
		{
			get{ return aLang; }
			set{ aLang= value; }
		}
		#endregion
		
		#region APicture
		private System.String aPicture;
		/// <summary>	 
		/// 图片
		/// </summary>
		public System.String APicture
		{
			get{ return aPicture; }
			set{ aPicture= value; }
		}
		#endregion
		
		#region AFrom
		private System.String aFrom;
		/// <summary>	 
		/// 来源
		/// </summary>
		public System.String AFrom
		{
			get{ return aFrom; }
			set{ aFrom= value; }
		}
		#endregion
		
		#region AAuthor
		private System.String aAuthor;
		/// <summary>	 
		/// 作者
		/// </summary>
		public System.String AAuthor
		{
			get{ return aAuthor; }
			set{ aAuthor= value; }
		}
		#endregion
		
		#region AIsPhotoNews
		private Int16 aIsPhotoNews;
		/// <summary>	 
		/// 是否图片新闻
		/// </summary>
		public Int16 AIsPhotoNews
		{
			get{ return aIsPhotoNews; }
			set{ aIsPhotoNews= value; }
		}
		#endregion
		
		#region AClassIds
		private System.String aClassIds;
		/// <summary>	 
		/// 所属类集合
		/// ,1,2,
		/// </summary>
		public System.String AClassIds
		{
			get{ return aClassIds; }
			set{ aClassIds= value; }
		}
		#endregion
		
		#region CEndDate
		private DateTime cEndDate;
		/// <summary>	 
		/// 活动截止日期
		/// </summary>
		public DateTime CEndDate
		{
			get{ return cEndDate; }
			set{ cEndDate= value; }
		}
		#endregion


	}
}
